package objectmodule;

public class Example {
    public static void main(String[] args) {
        new Father() {
            public void show() {
                System.out.println("helloworld");
            }
        }.show();
    }
}

class Father {
    public void show() {
        System.out.println("hellofather");
    }
}